package cn.antblog.designTemp.wrapper.file;

/**
 * @ClassName DataSourceDecorator
 * @Description 抽象基础装饰
 * @Author YangJingyi
 * @Date 2023/8/16 15:25
 * @Version 1.0
 */
public class DataSourceDecorator implements DataSource{
    private DataSource wrappee;

    DataSourceDecorator(DataSource source) {
        this.wrappee = source;
    }

    @Override
    public void writeData(String data) {
        wrappee.writeData(data);
    }

    @Override
    public String readData() {
        return wrappee.readData();
    }
}
